package com.eshop.modules.activity.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.activity.service.dto.StoreSeckillDto;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.activity.service.dto.StoreSeckillQueryCriteria;
import com.eshop.modules.activity.vo.StoreSeckillQueryVo;
import java.util.List;
import com.eshop.modules.activity.vo.StoreSeckillVo;
import com.eshop.modules.activity.domain.StoreSeckill;
import com.eshop.common.service.BaseService;

public interface StoreSeckillService extends BaseService<StoreSeckill>
{
    StoreSeckillVo getDetail(final Long id);
    
    List<StoreSeckillQueryVo> getList(final int page, final int limit, final int time);
    
    List<StoreSeckillQueryVo> getList(final int page, final int limit);
    
    Map<String, Object> queryAll(final StoreSeckillQueryCriteria criteria, final Pageable pageable);
    
    List<StoreSeckill> queryAll(final StoreSeckillQueryCriteria criteria);
    
    void download(final List<StoreSeckillDto> all, final HttpServletResponse response) throws IOException;
    
    boolean saveSeckill(final StoreSeckillDto resources);
}
